<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping>
    <joined-subclass  name="${C.classFullName(T.DOMAIN)}" table="${tableName}">
        <#list C.tableClass().propertyDescList as property>
        <#if property.primary>
        <id column="${property.columnName}">
            <generator class="guid"/>
        </id>
        <#else>
        <property name="${property.propertyName}" type="${property.type}" column="${property.columnName}" />
        </#if>
        </#list>
    </joined-subclass>


</hibernate-mapping>